﻿@model Century.Models.Core.EmailTemplate
@{
    ViewBag.Title = "Copy";
}
<br />
<h2>Copy</h2>
<br />
@using (Html.BeginForm()){
    @Html.HiddenFor(model => model.Id)
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>EmailTemplate</legend>
        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Subject)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Subject)
            @Html.ValidationMessageFor(model => model.Subject)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Body)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Body)
            @Html.ValidationMessageFor(model => model.Body)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Version)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Version)
            @Html.ValidationMessageFor(model => model.Version)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.CountrySiteId)
        </div>
        <div class="editor-field">
            @Html.Telerik().DropDownListFor(c=>c.CountrySiteId).BindTo(new SelectList((System.Collections.IEnumerable)ViewBag.AccessibleSites, "Id", "Name"))
            @Html.ValidationMessageFor(model => model.CountrySiteId)
        </div>
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("Back to List", "Index")
</div>
